﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_SourceVolt", DisableSyncStructure = true)]
	public partial class TSourceVolt {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string ADC { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 设备id十进制形式
		/// </summary>
		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(Name = "hardversion", StringLength = -2)]
		public string Hardversion { get; set; }

		[JsonProperty, Column(Name = "softversion", StringLength = -2)]
		public string Softversion { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		[JsonProperty]
		public DateTime? Time { get; set; }

	}

}
